﻿using System;
using System.Collections.Generic;
using System.Text;
using Sinacor.Infra.UI.Controls.SmartClient;
using System.Windows;
using System.Windows.Controls;

namespace Sinacor.UI.Application.Menu.SmartClient
{
    public class ContextMenuItemFavorite : SinacorContextMenuItem
    {
        private FavoriteSubMenuItem _parentMenu;

        public FavoriteSubMenuItem ParentMenu
        {
            get { return _parentMenu; }
            set { _parentMenu = value; }
        }

        public ContextMenuItemFavorite(string header, RoutedEventHandler click)
        {
            SetResourceReference(FavoriteSubMenuItem.HeaderProperty, header);
            SetResourceReference(FavoriteSubMenuItem.StyleProperty, "FavoritesContextMenuItem");
            Click += click;
        }
    }	
}